import re


def is_email(email):
    if len(email) > 7:
        email_reg = '^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]' \
                    '{2,3}|[0-9]{1,3})(\\]?)$'
        if re.match(email_reg, email) is not None:
            return True
    return False


def is_phone(value):
    value = str(value)
    if value.isdigit() and len(value) == 11 and value[0] == '1':
        return True
    else:
        return False


